Value | Meaning |
---|---|
ASENSOR_TYPE_INVALID-1 | Invalid sensor type. Returned by {@link ASensor_getType} as error value. |
ASENSOR_TYPE_ACCELEROMETER1 | {@link ASENSOR_TYPE_ACCELEROMETER} reporting-mode: continuous All values are in SI units (m/s^2) and measure the acceleration of the device minus the force of gravity. |
ASENSOR_TYPE_MAGNETIC_FIELD2 | {@link ASENSOR_TYPE_MAGNETIC_FIELD} reporting-mode: continuous All values are in micro-Tesla (uT) and measure the geomagnetic field in the X, Y and Z axis. |
ASENSOR_TYPE_GYROSCOPE4 | {@link ASENSOR_TYPE_GYROSCOPE} reporting-mode: continuous All values are in radians/second and measure the rate of rotation around the X, Y and Z axis. |
ASENSOR_TYPE_LIGHT5 | {@link ASENSOR_TYPE_LIGHT} reporting-mode: on-change The light sensor value is returned in SI lux units. |
ASENSOR_TYPE_PRESSURE6 | {@link ASENSOR_TYPE_PRESSURE} The pressure sensor value is returned in hPa (millibar). |
ASENSOR_TYPE_PROXIMITY8 | {@link ASENSOR_TYPE_PROXIMITY} reporting-mode: on-change The proximity sensor which turns the screen off and back on during calls is the wake-up proximity sensor. Implement wake-up proximity sensor before implementing a non wake-up proximity sensor. For the wake-up proximity sensor set the flag SENSOR_FLAG_WAKE_UP. The value corresponds to the distance to the nearest object in centimeters. |
ASENSOR_TYPE_GRAVITY9 | {@link ASENSOR_TYPE_GRAVITY} All values are in SI units (m/s^2) and measure the direction and magnitude of gravity. When the device is at rest, the output of the gravity sensor should be identical to that of the accelerometer. |
ASENSOR_TYPE_LINEAR_ACCELERATION10 | {@link ASENSOR_TYPE_LINEAR_ACCELERATION} reporting-mode: continuous All values are in SI units (m/s^2) and measure the acceleration of the device not including the force of gravity. |
ASENSOR_TYPE_ROTATION_VECTOR11 | {@link ASENSOR_TYPE_ROTATION_VECTOR} |
ASENSOR_TYPE_RELATIVE_HUMIDITY12 | {@link ASENSOR_TYPE_RELATIVE_HUMIDITY} The relative humidity sensor value is returned in percent. |
ASENSOR_TYPE_AMBIENT_TEMPERATURE13 | {@link ASENSOR_TYPE_AMBIENT_TEMPERATURE} The ambient temperature sensor value is returned in Celcius. |
ASENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED14 | {@link ASENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED} |
ASENSOR_TYPE_GAME_ROTATION_VECTOR15 | {@link ASENSOR_TYPE_GAME_ROTATION_VECTOR} |
ASENSOR_TYPE_GYROSCOPE_UNCALIBRATED16 | {@link ASENSOR_TYPE_GYROSCOPE_UNCALIBRATED} |
ASENSOR_TYPE_SIGNIFICANT_MOTION17 | {@link ASENSOR_TYPE_SIGNIFICANT_MOTION} |
ASENSOR_TYPE_STEP_DETECTOR18 | {@link ASENSOR_TYPE_STEP_DETECTOR} |
ASENSOR_TYPE_STEP_COUNTER19 | {@link ASENSOR_TYPE_STEP_COUNTER} |
ASENSOR_TYPE_GEOMAGNETIC_ROTATION_VECTOR20 | {@link ASENSOR_TYPE_GEOMAGNETIC_ROTATION_VECTOR} |
ASENSOR_TYPE_HEART_RATE21 | {@link ASENSOR_TYPE_HEART_RATE} |
ASENSOR_TYPE_POSE_6DOF28 | {@link ASENSOR_TYPE_POSE_6DOF} |
ASENSOR_TYPE_STATIONARY_DETECT29 | {@link ASENSOR_TYPE_STATIONARY_DETECT} |
ASENSOR_TYPE_MOTION_DETECT30 | {@link ASENSOR_TYPE_MOTION_DETECT} |
ASENSOR_TYPE_HEART_BEAT31 | {@link ASENSOR_TYPE_HEART_BEAT} |
ASENSOR_TYPE_ADDITIONAL_INFO33 | This sensor type is for delivering additional sensor information aside from sensor event data. Additional information may include: - {@link ASENSOR_ADDITIONAL_INFO_INTERNAL_TEMPERATURE} - {@link ASENSOR_ADDITIONAL_INFO_SAMPLING} - {@link ASENSOR_ADDITIONAL_INFO_SENSOR_PLACEMENT} - {@link ASENSOR_ADDITIONAL_INFO_UNTRACKED_DELAY} - {@link ASENSOR_ADDITIONAL_INFO_VEC3_CALIBRATION} This type will never bind to a sensor. In other words, no sensor in the sensor list can have the type {@link ASENSOR_TYPE_ADDITIONAL_INFO}. If a device supports the sensor additional information feature, it will report additional information events via {@link ASensorEvent} and will have {@link ASensorEvent#type} set to {@link ASENSOR_TYPE_ADDITIONAL_INFO} and {@link ASensorEvent#sensor} set to the handle of the reporting sensor. Additional information reports consist of multiple frames ordered by {@link ASensorEvent#timestamp}. The first frame in the report will have a {@link AAdditionalInfoEvent#type} of {@link ASENSOR_ADDITIONAL_INFO_BEGIN}, and the last frame in the report will have a {@link AAdditionalInfoEvent#type} of {@link ASENSOR_ADDITIONAL_INFO_END}. |
ASENSOR_TYPE_LOW_LATENCY_OFFBODY_DETECT34 | {@link ASENSOR_TYPE_LOW_LATENCY_OFFBODY_DETECT} |
ASENSOR_TYPE_ACCELEROMETER_UNCALIBRATED35 | {@link ASENSOR_TYPE_ACCELEROMETER_UNCALIBRATED} |
Sensor types.
See android.hardware.SensorEvent#values
for detailed explanations of the data returned for each of these types.